﻿//10.Write a program that applies bonus scores to given scores in the range [1..9]. The program reads a digit as an input.
//If the digit is between 1 and 3, the program multiplies it by 10; if it is between 4 and 6,multiplies it by 100; 
//if it is between 7 and 9, multiplies it by 1000. If it is zero or if the value is not a digit, the program 
//must report an error. Use a switch statement and at the end print the calculated new value in the console.

using System;

namespace BonusScores
{
    class BonusScores
    {
        static void Main()
        {
            Console.Write("Please enter a digit in the range 1-9: ");
            string input = Console.ReadLine();

            switch (input)
            {
                case "1": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 10)); break;
                case "2": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 10)); break;
                case "3": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 10)); break;
                case "4": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 100)); break;
                case "5": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 100)); break;
                case "6": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 100)); break;
                case "7": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 1000)); break;
                case "8": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 1000)); break;
                case "9": Console.WriteLine("The new value is: {0}.", (int.Parse(input) * 1000)); break;
                default: Console.WriteLine("Error!"); break;
            }
        }
    }
}
